@extends('layout.admin')

@section('title','商品添加')

@section('content')



  <div class="box paint color_7"> 
   <div class="title"> 
    <h4> <i class="icon-book"></i><span>商品添加</span> </h4> 
   </div> 
   <div class="content"> 
    <form class="form-horizontal row-fluid" action="/good/insert" method="POST" enctype="multipart/form-data"> 
     <div class="form-row control-group row-fluid"> 
      <label class="control-label span3" for="normal-field">名称</label> 
      <div class="controls span9"> 
       <input id="normal-field" class="row-fluid" type="text" name="name" /> 
      </div> 
     </div> 
     <div class="form-row control-group row-fluid"> 
      <label class="control-label span3" for="hint-field">价格</label> 
      <div class="controls span9"> 
       <input id="hint-field" class="row-fluid" type="text" name="price" /> 
      </div> 
     </div> 
     <div class="form-row control-group row-fluid"> 
      <label class="control-label span3" for="with-placeholder">库存</label> 
      <div class="controls span9"> 
       <input id="with-placeholder" class="row-fluid" type="text" name="kucun" /> 
      </div> 
     </div> 
     <div class="form-row control-group row-fluid ">
              <label class="control-label span3" for="mask-int-phone">分类</label>
              <div class="controls span9">
                  <select class="small" name="cate_id" style="width:100%">
                      <option value="0">请选择</option>
                      @foreach($cates as $k=>$v)
                          <option value="{{$v->id}}">{{$v->name}}</option>
                      @endforeach
                  </select>
              </div>
      </div>
         
     <div class="form-row control-group row-fluid"> 
      <label class="control-label span3" for="search-input">图片</label> 
      <div class="controls span9">
      <div class="input-append row-fluid">  
       <div class="uploader" id="uniform-search-input">
         <div class="customfile">
        <div class="uneditable-input spa1n6 fileinput" aria-hidden="true">
         <input class="spa1n6 fileinput customfile-input" id="search-input" name="path[]"  type="file" multiple />
          </div>
      </div>
       </div>
     </div> 
     </div>
     </div>
      
      <div class="form-row control-group row-fluid"> 
      <label class="control-label span3" for="normal-field">详情</label> 
      <div class="controls span9"> 
       <input id="normal-field" class="row-fluid" type="text" name="detail" /> 
      </div> 
     </div> 

     <div class="form-row control-group row-fluid"> 
      <label class="control-label span3" for="normal-field">颜色</label> 
      <div class="controls span9">
                    <label class="checkbox ">
                      <div class="checker" id="uniform-inlineCheckbox1"><input id="inlineCheckbox1" value="红色" name="color[]" style="opacity: 0;" type="checkbox"></div>
                      红色</label>
                    <label class="checkbox ">
                      <div class="checker" id="uniform-inlineCheckbox1"><input id="inlineCheckbox1" value="黄色" name="color[]" style="opacity: 0;" type="checkbox"></div>
                      黄色</label>
                    <label class="checkbox">
                      <div class="checker" id="uniform-inlineCheckbox2"><input id="inlineCheckbox2" value="绿色" name="color[]" style="opacity: 0;" type="checkbox"></div>
                      绿色</label>
                  </div> 
     </div>
     

    <div class="form-row control-group row-fluid"> 
      <label class="control-label span3" for="normal-field">尺寸</label> 
      <div class="controls span9">
                    <label class="checkbox ">
                      <div class="checker" id="uniform-inlineCheckbox1"><input id="inlineCheckbox1" value="S" name="size[]" style="opacity: 0;" type="checkbox"></div>
                      S</label>
                    <label class="checkbox ">
                      <div class="checker" id="uniform-inlineCheckbox1"><input id="inlineCheckbox1" value="M" name="size[]" style="opacity: 0;" type="checkbox"></div>
                       M</label>
                    <label class="checkbox">
                      <div class="checker" id="uniform-inlineCheckbox2"><input id="inlineCheckbox2" value="L" name="size[]" style="opacity: 0;" type="checkbox"></div>
                      L</label>
                  </div> 
     </div>

   <div style="height:20px"></div>
   {{csrf_field()}}

     <div class="form-actions row-fluid"> 
      <div class="span3 visible-desktop"></div> 
      <div class="span7 "> 
       <button type="submit" class="btn btn-primary">提交</button> 
       <button type="button" class="btn btn-secondary">重置</button> 
      </div> 
     </div> 
    </form> 
   </div> 
   <a class="btn change_color_outside"><i class="paint_bucket"></i></a>
  </div> 
 </body>
</html>


@endsection